Skip to content

test(dashboard): Playwright e2e tests for Privy dashboard auth guards - #678

Merged
ONEONUORA merged 1 commit into
Fracverse:masterfrom
favvy994:feature/611-dashboard-auth-guard-tests
Jul 29, 2026
Merged

test(dashboard): Playwright e2e tests for Privy dashboard auth guards#678
ONEONUORA merged 1 commit into
Fracverse:masterfrom
favvy994:feature/611-dashboard-auth-guard-tests

Conversation

@favvy994

Copy link
Copy Markdown
Contributor

Closes #611

  • dashboard/e2e/auth-guards.spec.ts: integration tests covering:
    • Unauthenticated users redirected to /login for all protected routes
    • Authenticated users (mocked localStorage token) can access /dashboard pages
    • Token removal simulates logout and triggers redirect
    • Login form field validation and error display on failed auth
  • dashboard/playwright.config.ts: Playwright config with chromium, dev server integration, and CI environment support
  • dashboard/package.json: added @playwright/test devDependency with e2e scripts
  • Auth mocked via page.addInitScript injecting localStorage token (no live Privy backend required in pipeline environments)

Closes Fracverse#611

- dashboard/e2e/auth-guards.spec.ts: integration tests covering:
  - Unauthenticated users redirected to /login for all protected routes
  - Authenticated users (mocked localStorage token) can access /dashboard pages
  - Token removal simulates logout and triggers redirect
  - Login form field validation and error display on failed auth
- dashboard/playwright.config.ts: Playwright config with chromium, dev server
  integration, and CI environment support
- dashboard/package.json: added @playwright/test devDependency with e2e scripts
- Auth mocked via page.addInitScript injecting localStorage token (no live
  Privy backend required in pipeline environments)
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@favvy994 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @favvy994

@ONEONUORA
ONEONUORA merged commit 8e2a16e into Fracverse:master Jul 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dashboard] Tests: Write Cypress/Playwright integration tests for Privy dashboard auth guards

2 participants